package com.wzu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

@TableName("medical_card")
public class MedicalCard implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id; // 主键
    private String ruralCardNo; // 农合证号
    private String diseaseCode; // 慢病编码
    private String cardId; // 身份证号
    private String diseaseName; // 疾病名称
    private Date startTime; // 起始时间
    private Date endTime; // 终止时间

    public MedicalCard() {}
    public MedicalCard(Integer id, String ruralCardNo, String diseaseCode, String cardId, String diseaseName, Date startTime, Date endTime) {
        this.id = id;
        this.ruralCardNo = ruralCardNo;
        this.diseaseCode = diseaseCode;
        this.cardId = cardId;
        this.diseaseName = diseaseName;
        this.startTime = startTime;
        this.endTime = endTime;
    }
    public Integer getId() { return id; }
    public void setId(Integer id) { this.id = id; }
    public String getRuralCardNo() { return ruralCardNo; }
    public void setRuralCardNo(String ruralCardNo) { this.ruralCardNo = ruralCardNo; }
    public String getDiseaseCode() { return diseaseCode; }
    public void setDiseaseCode(String diseaseCode) { this.diseaseCode = diseaseCode; }
    public String getCardId() { return cardId; }
    public void setCardId(String cardId) { this.cardId = cardId; }
    public String getDiseaseName() { return diseaseName; }
    public void setDiseaseName(String diseaseName) { this.diseaseName = diseaseName; }
    public Date getStartTime() { return startTime; }
    public void setStartTime(Date startTime) { this.startTime = startTime; }
    public Date getEndTime() { return endTime; }
    public void setEndTime(Date endTime) { this.endTime = endTime; }
    @Override
    public String toString() {
        return "MedicalCard{" +
                "id=" + id +
                ", ruralCardNo='" + ruralCardNo + '\'' +
                ", diseaseCode='" + diseaseCode + '\'' +
                ", cardId='" + cardId + '\'' +
                ", diseaseName='" + diseaseName + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                '}';
    }
} 